package com.teamall.web.sjtj.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class CodeVisitedAidRankMonthArg {
    private String pk_name = "vid";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<CodeVisitedAidRankMonthCriteria> oredCriteria;

    public CodeVisitedAidRankMonthArg() {
        oredCriteria = new ArrayList<CodeVisitedAidRankMonthCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<CodeVisitedAidRankMonthCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(CodeVisitedAidRankMonthCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public CodeVisitedAidRankMonthCriteria or() {
    	CodeVisitedAidRankMonthCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public CodeVisitedAidRankMonthCriteria createCriteria() {
    	CodeVisitedAidRankMonthCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected CodeVisitedAidRankMonthCriteria createCriteriaInternal() {
    	CodeVisitedAidRankMonthCriteria criteria = new CodeVisitedAidRankMonthCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<CodeVisitedAidRankMonthCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<CodeVisitedAidRankMonthCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<CodeVisitedAidRankMonthCriterion> getAllCriteria() {
            return criteria;
        }

        public List<CodeVisitedAidRankMonthCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new CodeVisitedAidRankMonthCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeVisitedAidRankMonthCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeVisitedAidRankMonthCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeVisitedAidRankMonthCriterion(condition, value1, value2));
        }

        public CodeVisitedAidRankMonthCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (CodeVisitedAidRankMonthCriteria) this;
        }
        public CodeVisitedAidRankMonthCriteria andVidIsNull() {
            addCriterion("vid is null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidIsNotNull() {
            addCriterion("vid is not null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidEqualTo(String value) {
            addCriterion("vid =", value, "vid");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidNotEqualTo(String value) {
            addCriterion("vid <>", value, "vid");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidGreaterThan(String value) {
            addCriterion("vid >", value, "vid");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidGreaterThanOrEqualTo(String value) {
            addCriterion("vid >=", value, "vid");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidLessThan(String value) {
            addCriterion("vid <", value, "vid");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidLessThanOrEqualTo(String value) {
            addCriterion("vid <=", value, "vid");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidLike(String value) {
            addCriterion("vid like ", value, "vid", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidNotLike(String value) {
            addCriterion("vid  not like ", value, "vid", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidLeftLike(String value) {
            addCriterion("vid like ", value, "vid", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidNotLeftLike(String value) {
            addCriterion("vid  not like ", value, "vid", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidRightLike(String value) {
            addCriterion("vid like ", value, "vid", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidNotRightLike(String value) {
            addCriterion("vid  not like ", value, "vid", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidIn(List<String> values) {
            addCriterion("vid  in ", values, "vid");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidNotIn(List<String> values) {
            addCriterion("vid not in ", values, "vid");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidBetween(String value1, String value2) {
            addCriterion("vid between ", value1, value2, "vid");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVidNotBetween(String value1, String value2) {
            addCriterion("vid not between ", value1, value2, "vid");
            return (CodeVisitedAidRankMonthCriteria) this;
        }
        public CodeVisitedAidRankMonthCriteria andAidMainStaffIsNull() {
            addCriterion("aid_main_staff is null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffIsNotNull() {
            addCriterion("aid_main_staff is not null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffEqualTo(Integer value) {
            addCriterion("aid_main_staff =", value, "aid_main_staff");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffNotEqualTo(Integer value) {
            addCriterion("aid_main_staff <>", value, "aid_main_staff");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffGreaterThan(Integer value) {
            addCriterion("aid_main_staff >", value, "aid_main_staff");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffGreaterThanOrEqualTo(Integer value) {
            addCriterion("aid_main_staff >=", value, "aid_main_staff");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffLessThan(Integer value) {
            addCriterion("aid_main_staff <", value, "aid_main_staff");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffLessThanOrEqualTo(Integer value) {
            addCriterion("aid_main_staff <=", value, "aid_main_staff");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffLike(Integer value) {
            addCriterion("aid_main_staff like ", value, "aid_main_staff", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffNotLike(Integer value) {
            addCriterion("aid_main_staff  not like ", value, "aid_main_staff", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffLeftLike(Integer value) {
            addCriterion("aid_main_staff like ", value, "aid_main_staff", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffNotLeftLike(Integer value) {
            addCriterion("aid_main_staff  not like ", value, "aid_main_staff", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffRightLike(Integer value) {
            addCriterion("aid_main_staff like ", value, "aid_main_staff", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffNotRightLike(Integer value) {
            addCriterion("aid_main_staff  not like ", value, "aid_main_staff", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffIn(List<Integer> values) {
            addCriterion("aid_main_staff  in ", values, "aid_main_staff");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffNotIn(List<Integer> values) {
            addCriterion("aid_main_staff not in ", values, "aid_main_staff");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffBetween(Integer value1, Integer value2) {
            addCriterion("aid_main_staff between ", value1, value2, "aid_main_staff");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andAidMainStaffNotBetween(Integer value1, Integer value2) {
            addCriterion("aid_main_staff not between ", value1, value2, "aid_main_staff");
            return (CodeVisitedAidRankMonthCriteria) this;
        }
        public CodeVisitedAidRankMonthCriteria andStaffNameIsNull() {
            addCriterion("STAFF_NAME is null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameIsNotNull() {
            addCriterion("STAFF_NAME is not null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameEqualTo(String value) {
            addCriterion("STAFF_NAME =", value, "STAFF_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameNotEqualTo(String value) {
            addCriterion("STAFF_NAME <>", value, "STAFF_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameGreaterThan(String value) {
            addCriterion("STAFF_NAME >", value, "STAFF_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameGreaterThanOrEqualTo(String value) {
            addCriterion("STAFF_NAME >=", value, "STAFF_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameLessThan(String value) {
            addCriterion("STAFF_NAME <", value, "STAFF_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameLessThanOrEqualTo(String value) {
            addCriterion("STAFF_NAME <=", value, "STAFF_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameLike(String value) {
            addCriterion("STAFF_NAME like ", value, "STAFF_NAME", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameNotLike(String value) {
            addCriterion("STAFF_NAME  not like ", value, "STAFF_NAME", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameLeftLike(String value) {
            addCriterion("STAFF_NAME like ", value, "STAFF_NAME", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameNotLeftLike(String value) {
            addCriterion("STAFF_NAME  not like ", value, "STAFF_NAME", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameRightLike(String value) {
            addCriterion("STAFF_NAME like ", value, "STAFF_NAME", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameNotRightLike(String value) {
            addCriterion("STAFF_NAME  not like ", value, "STAFF_NAME", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameIn(List<String> values) {
            addCriterion("STAFF_NAME  in ", values, "STAFF_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameNotIn(List<String> values) {
            addCriterion("STAFF_NAME not in ", values, "STAFF_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameBetween(String value1, String value2) {
            addCriterion("STAFF_NAME between ", value1, value2, "STAFF_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andStaffNameNotBetween(String value1, String value2) {
            addCriterion("STAFF_NAME not between ", value1, value2, "STAFF_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }
        public CodeVisitedAidRankMonthCriteria andVisitedCountSumIsNull() {
            addCriterion("visited_count_sum is null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumIsNotNull() {
            addCriterion("visited_count_sum is not null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumEqualTo(BigDecimal value) {
            addCriterion("visited_count_sum =", value, "visited_count_sum");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumNotEqualTo(BigDecimal value) {
            addCriterion("visited_count_sum <>", value, "visited_count_sum");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumGreaterThan(BigDecimal value) {
            addCriterion("visited_count_sum >", value, "visited_count_sum");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("visited_count_sum >=", value, "visited_count_sum");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumLessThan(BigDecimal value) {
            addCriterion("visited_count_sum <", value, "visited_count_sum");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumLessThanOrEqualTo(BigDecimal value) {
            addCriterion("visited_count_sum <=", value, "visited_count_sum");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumLike(BigDecimal value) {
            addCriterion("visited_count_sum like ", value, "visited_count_sum", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumNotLike(BigDecimal value) {
            addCriterion("visited_count_sum  not like ", value, "visited_count_sum", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumLeftLike(BigDecimal value) {
            addCriterion("visited_count_sum like ", value, "visited_count_sum", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumNotLeftLike(BigDecimal value) {
            addCriterion("visited_count_sum  not like ", value, "visited_count_sum", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumRightLike(BigDecimal value) {
            addCriterion("visited_count_sum like ", value, "visited_count_sum", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumNotRightLike(BigDecimal value) {
            addCriterion("visited_count_sum  not like ", value, "visited_count_sum", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumIn(List<BigDecimal> values) {
            addCriterion("visited_count_sum  in ", values, "visited_count_sum");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumNotIn(List<BigDecimal> values) {
            addCriterion("visited_count_sum not in ", values, "visited_count_sum");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("visited_count_sum between ", value1, value2, "visited_count_sum");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVisitedCountSumNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("visited_count_sum not between ", value1, value2, "visited_count_sum");
            return (CodeVisitedAidRankMonthCriteria) this;
        }
        public CodeVisitedAidRankMonthCriteria andVillageIdIsNull() {
            addCriterion("VILLAGE_ID is null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdIsNotNull() {
            addCriterion("VILLAGE_ID is not null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdEqualTo(Integer value) {
            addCriterion("VILLAGE_ID =", value, "VILLAGE_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdNotEqualTo(Integer value) {
            addCriterion("VILLAGE_ID <>", value, "VILLAGE_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdGreaterThan(Integer value) {
            addCriterion("VILLAGE_ID >", value, "VILLAGE_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("VILLAGE_ID >=", value, "VILLAGE_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdLessThan(Integer value) {
            addCriterion("VILLAGE_ID <", value, "VILLAGE_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdLessThanOrEqualTo(Integer value) {
            addCriterion("VILLAGE_ID <=", value, "VILLAGE_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdLike(Integer value) {
            addCriterion("VILLAGE_ID like ", value, "VILLAGE_ID", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdNotLike(Integer value) {
            addCriterion("VILLAGE_ID  not like ", value, "VILLAGE_ID", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdLeftLike(Integer value) {
            addCriterion("VILLAGE_ID like ", value, "VILLAGE_ID", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdNotLeftLike(Integer value) {
            addCriterion("VILLAGE_ID  not like ", value, "VILLAGE_ID", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdRightLike(Integer value) {
            addCriterion("VILLAGE_ID like ", value, "VILLAGE_ID", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdNotRightLike(Integer value) {
            addCriterion("VILLAGE_ID  not like ", value, "VILLAGE_ID", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdIn(List<Integer> values) {
            addCriterion("VILLAGE_ID  in ", values, "VILLAGE_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdNotIn(List<Integer> values) {
            addCriterion("VILLAGE_ID not in ", values, "VILLAGE_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdBetween(Integer value1, Integer value2) {
            addCriterion("VILLAGE_ID between ", value1, value2, "VILLAGE_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("VILLAGE_ID not between ", value1, value2, "VILLAGE_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }
        public CodeVisitedAidRankMonthCriteria andVillageNameIsNull() {
            addCriterion("VILLAGE_NAME is null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameIsNotNull() {
            addCriterion("VILLAGE_NAME is not null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameEqualTo(String value) {
            addCriterion("VILLAGE_NAME =", value, "VILLAGE_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameNotEqualTo(String value) {
            addCriterion("VILLAGE_NAME <>", value, "VILLAGE_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameGreaterThan(String value) {
            addCriterion("VILLAGE_NAME >", value, "VILLAGE_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameGreaterThanOrEqualTo(String value) {
            addCriterion("VILLAGE_NAME >=", value, "VILLAGE_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameLessThan(String value) {
            addCriterion("VILLAGE_NAME <", value, "VILLAGE_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameLessThanOrEqualTo(String value) {
            addCriterion("VILLAGE_NAME <=", value, "VILLAGE_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameLike(String value) {
            addCriterion("VILLAGE_NAME like ", value, "VILLAGE_NAME", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameNotLike(String value) {
            addCriterion("VILLAGE_NAME  not like ", value, "VILLAGE_NAME", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameLeftLike(String value) {
            addCriterion("VILLAGE_NAME like ", value, "VILLAGE_NAME", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameNotLeftLike(String value) {
            addCriterion("VILLAGE_NAME  not like ", value, "VILLAGE_NAME", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameRightLike(String value) {
            addCriterion("VILLAGE_NAME like ", value, "VILLAGE_NAME", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameNotRightLike(String value) {
            addCriterion("VILLAGE_NAME  not like ", value, "VILLAGE_NAME", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameIn(List<String> values) {
            addCriterion("VILLAGE_NAME  in ", values, "VILLAGE_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameNotIn(List<String> values) {
            addCriterion("VILLAGE_NAME not in ", values, "VILLAGE_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameBetween(String value1, String value2) {
            addCriterion("VILLAGE_NAME between ", value1, value2, "VILLAGE_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVillageNameNotBetween(String value1, String value2) {
            addCriterion("VILLAGE_NAME not between ", value1, value2, "VILLAGE_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }
        public CodeVisitedAidRankMonthCriteria andTownIdIsNull() {
            addCriterion("TOWN_ID is null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdIsNotNull() {
            addCriterion("TOWN_ID is not null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdEqualTo(Integer value) {
            addCriterion("TOWN_ID =", value, "TOWN_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdNotEqualTo(Integer value) {
            addCriterion("TOWN_ID <>", value, "TOWN_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdGreaterThan(Integer value) {
            addCriterion("TOWN_ID >", value, "TOWN_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("TOWN_ID >=", value, "TOWN_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdLessThan(Integer value) {
            addCriterion("TOWN_ID <", value, "TOWN_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdLessThanOrEqualTo(Integer value) {
            addCriterion("TOWN_ID <=", value, "TOWN_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdNotLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdLeftLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdNotLeftLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdRightLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdNotRightLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdIn(List<Integer> values) {
            addCriterion("TOWN_ID  in ", values, "TOWN_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdNotIn(List<Integer> values) {
            addCriterion("TOWN_ID not in ", values, "TOWN_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdBetween(Integer value1, Integer value2) {
            addCriterion("TOWN_ID between ", value1, value2, "TOWN_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownIdNotBetween(Integer value1, Integer value2) {
            addCriterion("TOWN_ID not between ", value1, value2, "TOWN_ID");
            return (CodeVisitedAidRankMonthCriteria) this;
        }
        public CodeVisitedAidRankMonthCriteria andDepartmentIsNull() {
            addCriterion("DEPARTMENT is null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentIsNotNull() {
            addCriterion("DEPARTMENT is not null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentEqualTo(String value) {
            addCriterion("DEPARTMENT =", value, "DEPARTMENT");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentNotEqualTo(String value) {
            addCriterion("DEPARTMENT <>", value, "DEPARTMENT");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentGreaterThan(String value) {
            addCriterion("DEPARTMENT >", value, "DEPARTMENT");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentGreaterThanOrEqualTo(String value) {
            addCriterion("DEPARTMENT >=", value, "DEPARTMENT");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentLessThan(String value) {
            addCriterion("DEPARTMENT <", value, "DEPARTMENT");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentLessThanOrEqualTo(String value) {
            addCriterion("DEPARTMENT <=", value, "DEPARTMENT");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentLike(String value) {
            addCriterion("DEPARTMENT like ", value, "DEPARTMENT", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentNotLike(String value) {
            addCriterion("DEPARTMENT  not like ", value, "DEPARTMENT", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentLeftLike(String value) {
            addCriterion("DEPARTMENT like ", value, "DEPARTMENT", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentNotLeftLike(String value) {
            addCriterion("DEPARTMENT  not like ", value, "DEPARTMENT", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentRightLike(String value) {
            addCriterion("DEPARTMENT like ", value, "DEPARTMENT", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentNotRightLike(String value) {
            addCriterion("DEPARTMENT  not like ", value, "DEPARTMENT", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentIn(List<String> values) {
            addCriterion("DEPARTMENT  in ", values, "DEPARTMENT");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentNotIn(List<String> values) {
            addCriterion("DEPARTMENT not in ", values, "DEPARTMENT");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentBetween(String value1, String value2) {
            addCriterion("DEPARTMENT between ", value1, value2, "DEPARTMENT");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andDepartmentNotBetween(String value1, String value2) {
            addCriterion("DEPARTMENT not between ", value1, value2, "DEPARTMENT");
            return (CodeVisitedAidRankMonthCriteria) this;
        }
        public CodeVisitedAidRankMonthCriteria andVtimeIsNull() {
            addCriterion("vtime is null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeIsNotNull() {
            addCriterion("vtime is not null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeEqualTo(String value) {
            addCriterion("vtime =", value, "vtime");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeNotEqualTo(String value) {
            addCriterion("vtime <>", value, "vtime");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeGreaterThan(String value) {
            addCriterion("vtime >", value, "vtime");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeGreaterThanOrEqualTo(String value) {
            addCriterion("vtime >=", value, "vtime");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeLessThan(String value) {
            addCriterion("vtime <", value, "vtime");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeLessThanOrEqualTo(String value) {
            addCriterion("vtime <=", value, "vtime");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeLike(String value) {
            addCriterion("vtime like ", value, "vtime", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeNotLike(String value) {
            addCriterion("vtime  not like ", value, "vtime", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeLeftLike(String value) {
            addCriterion("vtime like ", value, "vtime", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeNotLeftLike(String value) {
            addCriterion("vtime  not like ", value, "vtime", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeRightLike(String value) {
            addCriterion("vtime like ", value, "vtime", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeNotRightLike(String value) {
            addCriterion("vtime  not like ", value, "vtime", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeIn(List<String> values) {
            addCriterion("vtime  in ", values, "vtime");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeNotIn(List<String> values) {
            addCriterion("vtime not in ", values, "vtime");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeBetween(String value1, String value2) {
            addCriterion("vtime between ", value1, value2, "vtime");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVtimeNotBetween(String value1, String value2) {
            addCriterion("vtime not between ", value1, value2, "vtime");
            return (CodeVisitedAidRankMonthCriteria) this;
        }
        public CodeVisitedAidRankMonthCriteria andVmonthIsNull() {
            addCriterion("vmonth is null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthIsNotNull() {
            addCriterion("vmonth is not null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthEqualTo(String value) {
            addCriterion("vmonth =", value, "vmonth");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthNotEqualTo(String value) {
            addCriterion("vmonth <>", value, "vmonth");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthGreaterThan(String value) {
            addCriterion("vmonth >", value, "vmonth");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthGreaterThanOrEqualTo(String value) {
            addCriterion("vmonth >=", value, "vmonth");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthLessThan(String value) {
            addCriterion("vmonth <", value, "vmonth");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthLessThanOrEqualTo(String value) {
            addCriterion("vmonth <=", value, "vmonth");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthLike(String value) {
            addCriterion("vmonth like ", value, "vmonth", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthNotLike(String value) {
            addCriterion("vmonth  not like ", value, "vmonth", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthLeftLike(String value) {
            addCriterion("vmonth like ", value, "vmonth", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthNotLeftLike(String value) {
            addCriterion("vmonth  not like ", value, "vmonth", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthRightLike(String value) {
            addCriterion("vmonth like ", value, "vmonth", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthNotRightLike(String value) {
            addCriterion("vmonth  not like ", value, "vmonth", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthIn(List<String> values) {
            addCriterion("vmonth  in ", values, "vmonth");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthNotIn(List<String> values) {
            addCriterion("vmonth not in ", values, "vmonth");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthBetween(String value1, String value2) {
            addCriterion("vmonth between ", value1, value2, "vmonth");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andVmonthNotBetween(String value1, String value2) {
            addCriterion("vmonth not between ", value1, value2, "vmonth");
            return (CodeVisitedAidRankMonthCriteria) this;
        }
        public CodeVisitedAidRankMonthCriteria andTownNameIsNull() {
            addCriterion("TOWN_NAME is null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameIsNotNull() {
            addCriterion("TOWN_NAME is not null");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameEqualTo(String value) {
            addCriterion("TOWN_NAME =", value, "TOWN_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameNotEqualTo(String value) {
            addCriterion("TOWN_NAME <>", value, "TOWN_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameGreaterThan(String value) {
            addCriterion("TOWN_NAME >", value, "TOWN_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameGreaterThanOrEqualTo(String value) {
            addCriterion("TOWN_NAME >=", value, "TOWN_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameLessThan(String value) {
            addCriterion("TOWN_NAME <", value, "TOWN_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameLessThanOrEqualTo(String value) {
            addCriterion("TOWN_NAME <=", value, "TOWN_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameNotLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 1);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameLeftLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameNotLeftLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 0);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameRightLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameNotRightLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 2);
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameIn(List<String> values) {
            addCriterion("TOWN_NAME  in ", values, "TOWN_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameNotIn(List<String> values) {
            addCriterion("TOWN_NAME not in ", values, "TOWN_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameBetween(String value1, String value2) {
            addCriterion("TOWN_NAME between ", value1, value2, "TOWN_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

        public CodeVisitedAidRankMonthCriteria andTownNameNotBetween(String value1, String value2) {
            addCriterion("TOWN_NAME not between ", value1, value2, "TOWN_NAME");
            return (CodeVisitedAidRankMonthCriteria) this;
        }

    }

    public static class CodeVisitedAidRankMonthCriteria extends GeneratedCriteria {

        protected CodeVisitedAidRankMonthCriteria() {
            super();
        }
    }

    public static class CodeVisitedAidRankMonthCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected CodeVisitedAidRankMonthCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected CodeVisitedAidRankMonthCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected CodeVisitedAidRankMonthCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected CodeVisitedAidRankMonthCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected CodeVisitedAidRankMonthCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected CodeVisitedAidRankMonthCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}